/*
 * rental.cpp
 *
 *  Created on: Feb 22, 2016
 *      Author: ezhaome
 */
#include "rental.h"

Rental::Rental(Movie movie, int daysRented)
{
	_movie = movie;
	_daysRented = daysRented;
}

int Rental::getDaysRented()
{
	return _daysRented;
}

Movie Rental::getMovie()
{
	return _movie;
}

double Rental::getCharge()
{
	return _movie.getCharge(getDaysRented());
}

int Rental::getFrequentPoints()
{
	return _movie.getFrequentPoints(getDaysRented());
}
